import { ADMIN_LOGIN_URL } from '../config';
import request from '../utils/request';

export const getProjectListApi = (count = 1, limitNum = 10) => request.get(`${ADMIN_LOGIN_URL}/pro/list`, {
  params: {
    count,
    limitNum,
  },
  fullRes: true,
})
export const getProjectUpdateFlagApi = (parmas) => request.post(`${ADMIN_LOGIN_URL}/pro/updateFlag`, parmas)
export const getProjectDetailApi = (proid) => request.get(`${ADMIN_LOGIN_URL}/pro/detail`, { params: { proid } })
export const getProjectGroupApi = () => request.get(`${ADMIN_LOGIN_URL}/pro/getCategory`)
export const postProjectSearchApi = (parmas) => request.post(`${ADMIN_LOGIN_URL}/pro/searchPro`, parmas)
